.class public Lcom/teewoo/app/bus/ui/MyCollectionActivity;
.super Landroid/app/TabActivity;
.source "MyCollectionActivity.java"


# static fields
.field public static final ADD_IMAGE_FOCUS:I = 0x7f020010

.field public static final ADD_IMAGE_NORMAL:I = 0x7f020011

.field public static final CLEAR_IMAGE_FOCUS:I = 0x7f02000d

.field public static final CLEAR_IMAGE_NORMAL:I = 0x7f02000e

.field public static final LINE_IMAGE_FOCUS:I = 0x7f020008

.field public static final LINE_IMAGE_NORMAL:I = 0x7f020009

.field public static final MORE_IMAGE_FOCUS:I = 0x7f020035

.field public static final MORE_IMAGE_NORMAL:I = 0x7f020036

.field public static final REFRESH_IMAGE_FOCUS:I = 0x7f020046

.field public static final REFRESH_IMAGE_NORMAL:I = 0x7f020047

.field public static final STATION_IMAGE_FOCUS:I = 0x7f02004c

.field public static final STATION_IMAGE_NORMAL:I = 0x7f02004d

.field private static final TAB_LINE_ID:Ljava/lang/String; = "tab1"

.field private static final TAB_LINE_NAME:Ljava/lang/String; = "\u7ebf\u8def\u6536\u85cf"

.field private static final TAB_STATION_ID:Ljava/lang/String; = "tab2"

.field private static final TAB_STATION_NAME:Ljava/lang/String; = "\u7ad9\u70b9\u6536\u85cf"

.field private static final TAB_URL_ID:Ljava/lang/String; = "tab3"

.field private static final TAB_URL_NAME:Ljava/lang/String; = "\u7f51\u5740\u6536\u85cf"

.field public static final URL_IMAGE_FOCUS:I = 0x7f02002a

.field public static final URL_IMAGE_NORMAL:I = 0x7f02002b


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 14
    invoke-direct {p0}, Landroid/app/TabActivity;-><init>()V

    return-void
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 7
    .parameter "savedInstanceState"

    .prologue
    const/4 v6, 0x0

    .line 41
    invoke-super {p0, p1}, Landroid/app/TabActivity;->onCreate(Landroid/os/Bundle;)V

    .line 42
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/MyCollectionActivity;->getTabHost()Landroid/widget/TabHost;

    move-result-object v1

    .line 44
    .local v1, tabHost:Landroid/widget/TabHost;
    const-string v2, "tab1"

    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v2

    const-string v3, "\u7ebf\u8def\u6536\u85cf"

    .line 45
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/MyCollectionActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f020008

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    .line 44
    invoke-virtual {v2, v3, v4}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    move-result-object v2

    .line 46
    new-instance v3, Landroid/content/Intent;

    const-class v4, Lcom/teewoo/app/bus/ui/MyLineCollectionActivity;

    invoke-direct {v3, p0, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 45
    invoke-virtual {v2, v3}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    move-result-object v2

    .line 44
    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 47
    const-string v2, "tab2"

    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v2

    const-string v3, "\u7ad9\u70b9\u6536\u85cf"

    .line 48
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/MyCollectionActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f02004d

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    .line 47
    invoke-virtual {v2, v3, v4}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    move-result-object v2

    .line 49
    new-instance v3, Landroid/content/Intent;

    const-class v4, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity;

    invoke-direct {v3, p0, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 48
    invoke-virtual {v2, v3}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    move-result-object v2

    .line 47
    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 50
    const-string v2, "tab3"

    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v2

    const-string v3, "\u7f51\u5740\u6536\u85cf"

    .line 51
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/MyCollectionActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f02002b

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    .line 50
    invoke-virtual {v2, v3, v4}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    move-result-object v2

    .line 52
    new-instance v3, Landroid/content/Intent;

    const-class v4, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;

    invoke-direct {v3, p0, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 51
    invoke-virtual {v2, v3}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    move-result-object v2

    .line 50
    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 54
    new-instance v2, Lcom/teewoo/app/bus/ui/MyCollectionActivity$1;

    invoke-direct {v2, p0, v1}, Lcom/teewoo/app/bus/ui/MyCollectionActivity$1;-><init>(Lcom/teewoo/app/bus/ui/MyCollectionActivity;Landroid/widget/TabHost;)V

    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->setOnTabChangedListener(Landroid/widget/TabHost$OnTabChangeListener;)V

    .line 80
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/MyCollectionActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "collection.back.flag"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 82
    .local v0, focusTab:Ljava/lang/String;
    if-eqz v0, :cond_3

    .line 84
    const-string v2, "line"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 85
    invoke-virtual {v1, v6}, Landroid/widget/TabHost;->setCurrentTab(I)V

    .line 95
    :cond_0
    :goto_0
    return-void

    .line 86
    :cond_1
    const-string v2, "station"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 88
    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->setCurrentTab(I)V

    goto :goto_0

    .line 89
    :cond_2
    const-string v2, "url"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 91
    const/4 v2, 0x2

    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->setCurrentTab(I)V

    goto :goto_0

    .line 93
    :cond_3
    invoke-virtual {v1, v6}, Landroid/widget/TabHost;->setCurrentTab(I)V

    goto :goto_0
.end method
